﻿using OwnerTools.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OwnerTools.viewmodel
{
    class UserViewModel
    {
        public UserModel User { get; set; } = new UserModel();

        private bool _isLoggedIn = false;
        public bool IsLoggedIn
        {
            get { return _isLoggedIn; }
        }
        public bool CheckLogin(string username, string password)
        {
            _isLoggedIn = User.CheckLogin(username, password);
            return _isLoggedIn;
        }
    }
}
